package com.tanhua.dubbo.test;

import com.tanhua.domain.mongo.Conclusion;
import com.tanhua.domain.mongo.Option;
import com.tanhua.domain.mongo.Question;
import com.tanhua.domain.mongo.Questionnaire;
import com.tanhua.dubbo.utils.IdService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@SpringBootTest
@RunWith(SpringRunner.class)
public class AddQuestion {
    @Autowired
    private MongoTemplate mongoTemplate;

    @Autowired
    private IdService idService;

    @Test
    public void aDD(){
        add();//导入题目
        add4();//导入初级结论
        add1();//导入中级结论
        add3();//导入高级级结论
        add2(); //导入问卷
    }

    public void add(){
        //初级
        String q = "你何时感觉最好？|你走路时是|和人说话时|坐着休息时|碰到你感到发笑的事时，你的反应是|当你去一个派对或社交场合时，|当你非常专心工作时，有人打断你，你会|下列颜色中，你最喜欢哪一种颜色？|临入睡的前几分钟，你在床上的姿势是|你经常梦到自己在";
        String o ="A,早晨,2|B,下午及傍晚,4|C,夜里,6/A,大步地快走,6|B,小步地块走,4|C,不快，仰着头面对着世界,7|D,不快，低着头,2|E,很慢,1/A,手臂交叠站着,4|B,双手紧握着,2|C,一只手或两只手放在臀部,5|D,碰着或推着与你说话的人,7|E,玩着你的耳朵，摸着你的下巴或用手整理头发,6/A,两膝盖并拢,4|B,两腿交叉,6|C,两腿伸直,2|D,一腿蜷在身下,1/A,一个欣赏的大笑,6|B,笑着，但不大声,4|C,轻声地笑,3|D,羞怯的微笑,5/A,很大声地入场以引起注意,6|B,安静地入场，找你认识的人,4|C,非常安静地入场，尽量保持不被注意,2/A,欢迎他,6|B,感到非常愤怒,2|C,在上述两极端之间,4/A,红或橘色,6|B,黑色,7|C,黄色或浅蓝色,5|D,绿色,4|E,深蓝色或紫色,3|F,白色,2|G,棕色或灰色,1/A,仰躺，伸直,7|B,俯躺，伸直,6|C,侧躺，微蜷,4|D,头睡在一手臂上,2|E,被子盖过头,1/A,落下,4|B,打架或挣扎,2|C,找东西或人,3|D,飞或漂浮,5|E,你平常不做梦,6|F,你的梦都是愉快的,1";
        addQustion(q,o,0);
        //中级
         q = "你最喜欢教室里哪个位置|上课前五分钟 发现没带课本？|自由活动课打算干嘛|你觉得自己在班里的人缘如何？|做笔记时  你的书上会是：|走廊遇到班主任 你会。。。|考试居然提前半小时做完 这时你会|考试完被问你觉得这次考试怎么样？你会回答…|批改后的考卷发了下来 拿到试卷的你…|你更相信以下哪种言论";
         o ="A,靠窗户,5|B,第一排,2|C,最后一排,3|D,哪里都行,1/A,就这样吧 希望老师不认识我,1|B,百米冲刺去隔壁班借一本,2|C,和同桌共看一本,3|D,用其他课本掩饰,4/A,打球,1|B,做作业,2|C,教喜欢的同学做题,4|D,一个人发呆,1/A,不想交朋友 只想学习,5|B,永远有人约一起上厕所，打球,2|C,还行吧 有那么几个朋友,3|D,班里人都是我兄弟,4/A,打瞌睡时写下的毛毛虫外星文,1|B,炫酷涂鸦,2|C,认真记下老师所讲的内容,6|D,认真写下自己的看法和见解,3/A,掉头悄悄走掉,1|B,恭敬的打招呼,2|C,装没看见，不屑的路过,3|D,低头默然 擦肩而过,6/A,认真检查直到最后一刻,7|B,提前交卷,1|C,在草稿纸上随意涂鸦,3|D,开始捣乱 乱丢纸团 “嫁祸”好友,4/A,应该能及格,1|B,发挥不太好 估计这次名次要掉了,4|C,一般般吧..,3|D,我居然写完了，自我感觉不错呢,2/A,干净看错了哪几题,3|B,赶紧看对了哪几题,4|C,捏成一团塞进抽屉,3|D,瞟一眼成绩后放在一旁,4/A,努力能改变一切,2|B,有的人生来就在罗马,2|C,有钱能使鬼推磨,1|D,一切随缘 命由天注定,5";
        addQustion(q,o,1);
        //高级
        q = "你在感情中 是主动和强势的那一方吗|如果说你这一生势必会有遗憾 那么你最意难平的一件事会是？|如果你有机会穿越到小说世界中 你希望进入怎样的故事？|刚参加完一场盛大的party 到家之后你会？|下面那句话能戳到你|你是够相信爱情是一场宇宙安排的邂逅|你是男生还是女生";
        o ="A,是的,8|B,不是,4|C,不确定,6|D,别问 我莫得感情,5/A,没有在这个世界上留下你的痕迹,5|B,没有过一场轰轰烈烈的爱情,4|C,没有远行看过一场龙卷风,6|D,没有将全世界的美食吃遍,7/A,全员事业脑 职场后宫戏,9|B,泼天狗血大戏玛丽苏爱情故事,6|C,星际穿越宇宙流浪跨时空之恋,7|D,暖光背景清晰新滤镜校园酸甜恋爱,8/A,不会回家 after party继续嗨,7|B,立马开始修图 发精美的朋友圈,6|C,陷在沙发里面 享受当下的安逸,5|D,卸下装备 吃喝追剧,8/A,被我喜欢看 你可以有做任何事的勇气,6|B,细数此生的最美好 是我来时 恰逢你到,7|C,在什么都善忘的世界里 我想邀请你看一看永远,8|D, 站着别动 你就做你喜欢的自己 我会去有你的天空下找你,9/A,相信 而且我正在主动追寻,8|B,相信 我在默默等待宇宙的安排,6|C,不相信 爱情是人为 制作的东西 ,4|D,不相信 我已经累觉不爱,1/A,男,5|B,女,8";
        addQustion(q,o,2);
    }

   private void addQustion (String q,String o,Integer num){
       String[] qSplit = q.split("\\|");
       String[] oSplit = o.split("\\/");
       List<Question> list = new ArrayList<>();
       for (int i = 0; i < qSplit.length; i++) {
           Question question = new Question();
           Long id = idService.getNextId("question");
           question.setQid(id.intValue());
           question.setQuestion(qSplit[i]);
           List<Option> a = new ArrayList<>();
           String[] split = oSplit[i].split("\\|");
           for (String s2 : split) {
               Option option = new Option();
               String[] split1 = s2.split(",");
               option.setId(split1[0]);
               option.setOption(split1[1]);
               option.setScore(split1[2]);
               a.add(option);
           }
           question.setOptions(a);
           question.setLevel(num);//设置初中高
           mongoTemplate.insert(question);
           list.add(question);
       }
   }

  //导入初级结论

  public void add4(){
      addConclusion1();
      addConclusion2();
      addConclusion3();
      addConclusion4();
  }

    public void addConclusion1(){
        Conclusion c = new Conclusion();
        //1号结论
        c.setCid(1);
        c.setUpper(20);
        c.setFloor(0);
        c.setCover("https://mimikyu-tanhua.oss-cn-guangzhou.aliyuncs.com/images/2021/06/20/f0c09073-7c68-4703-8cb8-dc51dd869d6f.jpg");
        c.setConclusion("猫头鹰：他们的共同特质为重计划、条理、细节精准。在行为上，表现出喜欢理性思考与分析、较重视制度、结构、规范。他们注重执行游戏规则、循规蹈矩、巨细靡遗、重视品质、敬业负责。");
        //外向，判断，抽象，理性
        Map<String, String> map1 = new HashMap<>();
        map1.put("key","外向");
        map1.put("value","60%");
        Map<String, String> map2 = new HashMap<>();
        map2.put("key","判断");
        map2.put("value","20%");
        Map<String, String> map3 = new HashMap<>();
        map3.put("key","抽象");
        map3.put("value","15%");
        Map<String, String> map4 = new HashMap<>();
        map4.put("key","理性");
        map4.put("value","5%");
        List<Map<String, String>> list = new ArrayList<>();
        list.add(map1);
        list.add(map2);
        list.add(map3);
        list.add(map4);
        c.setDimensions(list);
        mongoTemplate.save(c);
    }
    public void addConclusion2(){
        Conclusion c = new Conclusion();
        //1号结论
        c.setCid(2);
        c.setUpper(40);
        c.setFloor(21);
        c.setCover("https://mimikyu-tanhua.oss-cn-guangzhou.aliyuncs.com/images/2021/06/20/f0c09073-7c68-4703-8cb8-dc51dd869d6f.jpg");
        c.setConclusion("白兔型：平易近人、敦厚可靠、避免冲突与不具批判性。在行为上，表现出不慌不忙、冷静自持的态度。他们注重稳定与中长程规划，现实生活中，常会反思自省并以和谐为中心，即使面对困境，亦能泰然自若，从容应付。");
        //外向，判断，抽象，理性
        Map<String, String> map1 = new HashMap<>();
        map1.put("key","外向");
        map1.put("value","20%");
        Map<String, String> map2 = new HashMap<>();
        map2.put("key","判断");
        map2.put("value","60%");
        Map<String, String> map3 = new HashMap<>();
        map3.put("key","抽象");
        map3.put("value","10%");
        Map<String, String> map4 = new HashMap<>();
        map4.put("key","理性");
        map4.put("value","10%");
        List<Map<String, String>> list = new ArrayList<>();
        list.add(map1);
        list.add(map2);
        list.add(map3);
        list.add(map4);
        c.setDimensions(list);
        mongoTemplate.save(c);
    }
    public void addConclusion3(){
        Conclusion c = new Conclusion();
        //1号结论
        c.setCid(3);
        c.setUpper(55);
        c.setFloor(41);
        c.setCover("https://mimikyu-tanhua.oss-cn-guangzhou.aliyuncs.com/images/2021/06/20/f0c09073-7c68-4703-8cb8-dc51dd869d6f.jpg");
        c.setConclusion("狐狸型 ：人际关系能力极强，擅长以口语表达感受而引起共鸣，很会激励并带动气氛。他们喜欢跟别人互动，重视群体的归属感，基本上是比较「人际导向」。由于他们富同理心并乐于分享，具有很好的亲和力，在服务业、销售业、传播业及公共关系等领域中，狐狸型的领导者都有很杰出的表现。");
        //外向，判断，抽象，理性
        Map<String, String> map1 = new HashMap<>();
        map1.put("key","外向");
        map1.put("value","20%");
        Map<String, String> map2 = new HashMap<>();
        map2.put("key","判断");
        map2.put("value","20%");
        Map<String, String> map3 = new HashMap<>();
        map3.put("key","抽象");
        map3.put("value","40%");
        Map<String, String> map4 = new HashMap<>();
        map4.put("key","理性");
        map4.put("value","20%");
        List<Map<String, String>> list = new ArrayList<>();
        list.add(map1);
        list.add(map2);
        list.add(map3);
        list.add(map4);
        c.setDimensions(list);
        mongoTemplate.save(c);
    }
    public void addConclusion4(){
        Conclusion c = new Conclusion();
        //1号结论
        c.setCid(4);
        c.setUpper(100);
        c.setFloor(56);
        c.setCover("https://mimikyu-tanhua.oss-cn-guangzhou.aliyuncs.com/images/2021/06/20/f0c09073-7c68-4703-8cb8-dc51dd869d6f.jpg");
        c.setConclusion("狮子型：性格为充满自信、竞争心强、主动且企图心强烈，是个有决断力的领导者。一般而言，狮子型的人胸怀大志，勇于冒险，看问题能够直指核心，并对目标全力以赴。 他们在领导风格及决策上，强调权威与果断，擅长危机处理，此种性格最适合开创性与改革性的工作。");
        //外向，判断，抽象，理性
        Map<String, String> map1 = new HashMap<>();
        map1.put("key","外向");
        map1.put("value","10%");
        Map<String, String> map2 = new HashMap<>();
        map2.put("key","判断");
        map2.put("value","20%");
        Map<String, String> map3 = new HashMap<>();
        map3.put("key","抽象");
        map3.put("value","30%");
        Map<String, String> map4 = new HashMap<>();
        map4.put("key","理性");
        map4.put("value","40%");
        List<Map<String, String>> list = new ArrayList<>();
        list.add(map1);
        list.add(map2);
        list.add(map3);
        list.add(map4);
        c.setDimensions(list);
        mongoTemplate.save(c);
    }

    //导入中级结论

    public void add1(){
        addConclusion5();
        addConclusion6();
        addConclusion7();
        addConclusion8();
    }
    public void addConclusion5(){
        Conclusion c = new Conclusion();
        //1号结论
        c.setCid(5);
        c.setUpper(23);
        c.setFloor(0);
        c.setCover("https://mimikyu-tanhua.oss-cn-guangzhou.aliyuncs.com/images/2021/06/20/f0c09073-7c68-4703-8cb8-dc51dd869d6f.jpg");
        c.setConclusion("学渣:不想努力了");
        //外向，判断，抽象，理性
        Map<String, String> map1 = new HashMap<>();
        map1.put("key","外向");
        map1.put("value","10%");
        Map<String, String> map2 = new HashMap<>();
        map2.put("key","判断");
        map2.put("value","20%");
        Map<String, String> map3 = new HashMap<>();
        map3.put("key","抽象");
        map3.put("value","15%");
        Map<String, String> map4 = new HashMap<>();
        map4.put("key","理性");
        map4.put("value","35%");
        List<Map<String, String>> list = new ArrayList<>();
        list.add(map1);
        list.add(map2);
        list.add(map3);
        list.add(map4);
        c.setDimensions(list);
        mongoTemplate.save(c);
    }
    public void addConclusion6(){
        Conclusion c = new Conclusion();
        //1号结论
        c.setCid(6);
        c.setUpper(33);
        c.setFloor(24);
        c.setCover("https://mimikyu-tanhua.oss-cn-guangzhou.aliyuncs.com/images/2021/06/20/f0c09073-7c68-4703-8cb8-dc51dd869d6f.jpg");
        c.setConclusion("学凡:平凡刻苦 老师好像又忘记了你的名字");
        //外向，判断，抽象，理性
        Map<String, String> map1 = new HashMap<>();
        map1.put("key","外向");
        map1.put("value","20%");
        Map<String, String> map2 = new HashMap<>();
        map2.put("key","判断");
        map2.put("value","30%");
        Map<String, String> map3 = new HashMap<>();
        map3.put("key","抽象");
        map3.put("value","45%");
        Map<String, String> map4 = new HashMap<>();
        map4.put("key","理性");
        map4.put("value","55%");
        List<Map<String, String>> list = new ArrayList<>();
        list.add(map1);
        list.add(map2);
        list.add(map3);
        list.add(map4);
        c.setDimensions(list);
        mongoTemplate.save(c);
    }
    public void addConclusion7(){
        Conclusion c = new Conclusion();
        //1号结论
        c.setCid(7);
        c.setUpper(43);
        c.setFloor(34);
        c.setCover("https://mimikyu-tanhua.oss-cn-guangzhou.aliyuncs.com/images/2021/06/20/f0c09073-7c68-4703-8cb8-dc51dd869d6f.jpg");
        c.setConclusion("学霸：学习刻苦，无时无刻不在学习");
        //外向，判断，抽象，理性
        Map<String, String> map1 = new HashMap<>();
        map1.put("key","外向");
        map1.put("value","30%");
        Map<String, String> map2 = new HashMap<>();
        map2.put("key","判断");
        map2.put("value","40%");
        Map<String, String> map3 = new HashMap<>();
        map3.put("key","抽象");
        map3.put("value","55%");
        Map<String, String> map4 = new HashMap<>();
        map4.put("key","理性");
        map4.put("value","65%");
        List<Map<String, String>> list = new ArrayList<>();
        list.add(map1);
        list.add(map2);
        list.add(map3);
        list.add(map4);
        c.setDimensions(list);
        mongoTemplate.save(c);
    }
    public void addConclusion8(){
        Conclusion c = new Conclusion();
        //1号结论
        c.setCid(8);
        c.setUpper(100);
        c.setFloor(44);
        c.setCover("https://mimikyu-tanhua.oss-cn-guangzhou.aliyuncs.com/images/2021/06/20/f0c09073-7c68-4703-8cb8-dc51dd869d6f.jpg");
        c.setConclusion("学神：去教老师");
        //外向，判断，抽象，理性
        Map<String, String> map1 = new HashMap<>();
        map1.put("key","外向");
        map1.put("value","40%");
        Map<String, String> map2 = new HashMap<>();
        map2.put("key","判断");
        map2.put("value","50%");
        Map<String, String> map3 = new HashMap<>();
        map3.put("key","抽象");
        map3.put("value","65%");
        Map<String, String> map4 = new HashMap<>();
        map4.put("key","理性");
        map4.put("value","75%");
        List<Map<String, String>> list = new ArrayList<>();
        list.add(map1);
        list.add(map2);
        list.add(map3);
        list.add(map4);
        c.setDimensions(list);
        mongoTemplate.save(c);
    }

    //导入高级级结论
    @Test
    public void add3(){
        addConclusion9();
        addConclusion10();
        addConclusion11();
        addConclusion12();
    }

    public void addConclusion9(){
        Conclusion c = new Conclusion();
        //1号结论
        c.setCid(9);
        c.setUpper(40);
        c.setFloor(0);
        c.setCover("https://mimikyu-tanhua.oss-cn-guangzhou.aliyuncs.com/images/2021/06/20/f0c09073-7c68-4703-8cb8-dc51dd869d6f.jpg");
        c.setConclusion("他们想要了解自己，又害怕了解自己，因为他们害怕了解自己以后，会发觉自己竟然是如此的平凡。这时他们可能会自我憎恨、自我折磨，但由于不了解自己，就又不知道自己生存的目的，并且也无法发展创造力，所以在面对自己时，他们显得如此地胆小，因此很容易逃避到幻想的世界去。");
        //外向，判断，抽象，理性
        Map<String, String> map1 = new HashMap<>();
        map1.put("key","外向");
        map1.put("value","75%");
        Map<String, String> map2 = new HashMap<>();
        map2.put("key","判断");
        map2.put("value","15%");
        Map<String, String> map3 = new HashMap<>();
        map3.put("key","抽象");
        map3.put("value","5%");
        Map<String, String> map4 = new HashMap<>();
        map4.put("key","理性");
        map4.put("value","5%");
        List<Map<String, String>> list = new ArrayList<>();
        list.add(map1);
        list.add(map2);
        list.add(map3);
        list.add(map4);
        c.setDimensions(list);
        mongoTemplate.save(c);
    }
    public void addConclusion10(){
        Conclusion c = new Conclusion();
        //1号结论
        c.setCid(10);
        c.setUpper(45);
        c.setFloor(41);
        c.setCover("https://mimikyu-tanhua.oss-cn-guangzhou.aliyuncs.com/images/2021/06/20/f0c09073-7c68-4703-8cb8-dc51dd869d6f.jpg");
        c.setConclusion("他们想创造出独一无二、与众不同的形象和作品，所以不停地自我察觉、自我反省，以及自我探索。他们相信创造所有美事物的能量都在自己身上，因此他们努力超脱平凡，以达到自生存的意义。");
        //外向，判断，抽象，理性
        Map<String, String> map1 = new HashMap<>();
        map1.put("key","外向");
        map1.put("value","5%");
        Map<String, String> map2 = new HashMap<>();
        map2.put("key","判断");
        map2.put("value","5%");
        Map<String, String> map3 = new HashMap<>();
        map3.put("key","抽象");
        map3.put("value","15%");
        Map<String, String> map4 = new HashMap<>();
        map4.put("key","理性");
        map4.put("value","75%");
        List<Map<String, String>> list = new ArrayList<>();
        list.add(map1);
        list.add(map2);
        list.add(map3);
        list.add(map4);
        c.setDimensions(list);
        mongoTemplate.save(c);
    }
    public void addConclusion11(){
        Conclusion c = new Conclusion();
        //1号结论
        c.setCid(11);
        c.setUpper(52);
        c.setFloor(46);
        c.setCover("https://mimikyu-tanhua.oss-cn-guangzhou.aliyuncs.com/images/2021/06/20/f0c09073-7c68-4703-8cb8-dc51dd869d6f.jpg");
        c.setConclusion("他们总是希望以美的形式来表达自己，生活中充满着幻想力、自我察觉力，以及不断自我探索的能力。而这些力量也正是让他们创造出不朽作品的力量来源。");
        //外向，判断，抽象，理性
        Map<String, String> map1 = new HashMap<>();
        map1.put("key","外向");
        map1.put("value","5%");
        Map<String, String> map2 = new HashMap<>();
        map2.put("key","判断");
        map2.put("value","75%");
        Map<String, String> map3 = new HashMap<>();
        map3.put("key","抽象");
        map3.put("value","15%");
        Map<String, String> map4 = new HashMap<>();
        map4.put("key","理性");
        map4.put("value","5%");
        List<Map<String, String>> list = new ArrayList<>();
        list.add(map1);
        list.add(map2);
        list.add(map3);
        list.add(map4);
        c.setDimensions(list);
        mongoTemplate.save(c);
    }
    public void addConclusion12(){
        Conclusion c = new Conclusion();
        //1号结论
        c.setCid(12);
        c.setUpper(100);
        c.setFloor(53);
        c.setCover("https://mimikyu-tanhua.oss-cn-guangzhou.aliyuncs.com/images/2021/06/20/f0c09073-7c68-4703-8cb8-dc51dd869d6f.jpg");
        c.setConclusion("他们很珍情自己的爱和情感，所以想好好地滋养它们，并用最美、最特殊的方式来表达。");
        //外向，判断，抽象，理性
        Map<String, String> map1 = new HashMap<>();
        map1.put("key","外向");
        map1.put("value","15%");
        Map<String, String> map2 = new HashMap<>();
        map2.put("key","判断");
        map2.put("value","5%");
        Map<String, String> map3 = new HashMap<>();
        map3.put("key","抽象");
        map3.put("value","75%");
        Map<String, String> map4 = new HashMap<>();
        map4.put("key","理性");
        map4.put("value","5%");
        List<Map<String, String>> list = new ArrayList<>();
        list.add(map1);
        list.add(map2);
        list.add(map3);
        list.add(map4);
        c.setDimensions(list);
        mongoTemplate.save(c);
    }

    @Test
    public void add2(){
        addQuestionnaire();
        addQuestionnaire1();
        addQuestionnaire2();

    }
    //导入初级问卷

    public void addQuestionnaire(){
        Questionnaire questionnaire = new Questionnaire();

        questionnaire.setName("初级问卷");
        questionnaire.setCover("https://mimikyu-tanhua.oss-cn-guangzhou.aliyuncs.com/images/2021/06/20/f0c09073-7c68-4703-8cb8-dc51dd869d6f.jpg");
        questionnaire.setLevel(0);
        questionnaire.setStar(2);
        List<Integer> list = new ArrayList<>();
        for (int i = 1; i <= 10; i++) {
            list.add(i);
        }
        questionnaire.setQuestionsId(list);
        List<Integer> list1 = new ArrayList<>();
        list1.add(1);
        list1.add(2);
        list1.add(3);
        list1.add(4);
        questionnaire.setConclusionsId(list1);
        mongoTemplate.save(questionnaire);
    }

    //导入中级问卷

    public void addQuestionnaire1(){
        Questionnaire questionnaire = new Questionnaire();

        questionnaire.setName("中级问卷");
        questionnaire.setCover("https://mimikyu-tanhua.oss-cn-guangzhou.aliyuncs.com/images/2021/06/20/f0c09073-7c68-4703-8cb8-dc51dd869d6f.jpg");
        questionnaire.setLevel(1);
        questionnaire.setStar(3);
        List<Integer> list = new ArrayList<>();
        for (int i = 11; i <= 20; i++) {
            list.add(i);
        }
        questionnaire.setQuestionsId(list);
        List<Integer> list1 = new ArrayList<>();
        list1.add(5);
        list1.add(6);
        list1.add(7);
        list1.add(8);
        questionnaire.setConclusionsId(list1);
        mongoTemplate.save(questionnaire);
    }

    //导入高级问卷

    public void addQuestionnaire2(){
        Questionnaire questionnaire = new Questionnaire();

        questionnaire.setName("高级问卷");
        questionnaire.setCover("https://mimikyu-tanhua.oss-cn-guangzhou.aliyuncs.com/images/2021/06/20/f0c09073-7c68-4703-8cb8-dc51dd869d6f.jpg");
        questionnaire.setLevel(2);
        questionnaire.setStar(5);
        List<Integer> list = new ArrayList<>();
        for (int i = 21; i <= 27; i++) {
            list.add(i);
        }
        questionnaire.setQuestionsId(list);
        List<Integer> list1 = new ArrayList<>();
        list1.add(9);
        list1.add(10);
        list1.add(11);
        list1.add(12);
        questionnaire.setConclusionsId(list1);
        mongoTemplate.save(questionnaire);
    }
}
